
//轮播图单个图片TS数据类型
export interface swiperItem{
  id:number,
  imageUrl:string,
  title:string,
  createTime:string,
  updateTime:string,
  isDelete?:number,
  linkUrl:string,
  sort:number
}
//定义返回的轮播图数据数组类型
export type data = swiperItem[]

//返回的响应式数据
export interface swiperResponseData{
  code:number,
  message:string,
  data:data
}

//======导航列表数据=========
//单个导航项的数据类型
export interface navItem{
  id:number,
  name:string,
  imageUrl:string,
}
//导航列表数组的数据类型
export type navItemList = navItem[]
//导航列表返回的结果类型
export interface navItemResponseData{
  code:number,
  message:string,
  data:navItemList
}

//广告栏
export interface advertisement {
  imageUrl:string,
  category2Id:number,
  id:number
}
//广告栏数组列表
export type advertisementList = advertisement[]
//广告栏请求返回的数据
export interface advertisementResponseData{
  code:number,
  message:string,
  data:advertisementList
}

//猜你喜欢和人气推荐数据类型
export interface recommendItem{
  id: number,
  category1Id: number,
  category2Id: number,
  name: string,
  price: number,
  marketPrice: number,
  saleCount: number,
  stockCount: number,
  imageUrl:string,
  floralLanguage:string,
  applyUser:string,
  material:string,
  packing:string,
  isRecommend: number,
  detailList: null
}
//猜你喜欢数组列表
export type recommendItemList = recommendItem[]

//猜你喜欢服务器返回的数据
export interface recommendResponseData{
  code:number,
  message:string,
  data:recommendItemList
}

//商品详情
export interface productInfo{
  id: number,
  isDeleted: number,
  category1Id: number,
  category2Id: number,
  name: string,
  price: number,
  marketPrice: number,
  saleCount: number,
  stockCount: number,
  imageUrl: string,
  floralLanguage:string,
  applyUser: string,
  material: string,
  packing: string,
  isRecommend: number,
  detailList:string[]
}
//商品返回数据
export interface productResponseData{
  code:number,
  message:string,
  data:productInfo
}

interface responseData{
  code:number,
  message:string
}

//分类列表单个类型
interface categorySubItem{
  id:number,
  name:string,
  imageUrl:string
}
export interface categoryItem{
  children:categorySubItem[],
  id:number,
  name:string,
  imageUrl:string
}

export interface categoryListResponseData extends responseData{
  data:categoryItem[]
}

//查看更多
export type records = productInfo[]

export interface dataRec{
  "total": number,
  "size": number,
  "current": number,
  "pages": number,
  records:records
}
export interface moreResponseData extends responseData{
  data:dataRec
}